package java8;

import java.util.List;
import java.util.stream.Stream;

public class Artist {
    private String name;
    private String nationality;
    private String gender;
    private List<Artist> members;

    public Artist() {
    }

    public Artist(String name, String nationality, String gender) {
        this.name = name;
        this.nationality = nationality;
        this.gender = gender;
    }

    public Stream<Artist> getMembers() {
        return members.stream();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
